package com.huanletao.spring.test;

import com.huanletao.proxy.cglib.Logger;
import com.huanletao.proxy.cglib.MethodNameAdvisor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 * </p>
 * package: com.huanletao.spring.test
 * description:
 * className: config
 * author:  踏雪无痕
 * copyright: Copyright (c) 2022/9/29 18:18
 * since: 1.0.0
 */
@Configuration
public class Config {

    @Bean
    public Logger logger(){
        return new Logger();
    }

    @Bean
    public MethodNameAdvisor methodNameAdvisor(){
        return new MethodNameAdvisor(logger());
    }

}
